def _get_db(profile):
 server = _get_conn(profile)
 db = _get_db(profile)
 return db

def _get_db ( profile ) : server = _get_conn ( profile ) db = _get_db ( profile ) return db
wraps _get_conn() to return a db .