@app.route('/verifyconn', methods=['GET'])
def verify_db_conn():
    '\n    Verifies the connection to the db.\n    '
    try:
        labs_conn = psycopg2.connect(user=os.environ.get('aws_db_user'), password=os.environ.get('aws_db_password'), host=os.environ.get('aws_db_host'), port=os.environ.get('aws_db_port'), database=os.environ.get('aws_db_name'))
        return 'Connection verified.'
    except:
        return 'Connection failed.'
    finally:
        if labs_conn:
            labs_conn.close()
Verifies the connection to the db.
@app.route('/verifyconn', methods=['GET'])
def verify_db_conn():
    '\n    \n    '
    try:
        labs_conn = psycopg2.connect(user=os.environ.get('aws_db_user'), password=os.environ.get('aws_db_password'), host=os.environ.get('aws_db_host'), port=os.environ.get('aws_db_port'), database=os.environ.get('aws_db_name'))
        return 'Connection verified.'
    except:
        return 'Connection failed.'
    finally:
        if labs_conn:
            labs_conn.close()