def get_db_client(conn_pool, *args, **kws):
    logger.debug('Getting DB Connection')
    if ('db' not in g):
        logger.debug('Creating new DB connection')
        g.db = conn_pool.get()
    return g.db
def get_db_client(conn_pool, *args, **kws):
    logger.debug('Getting DB Connection')
    if ('db' not in g):
        logger.debug('Creating new DB connection')
        g.db = conn_pool.get()
    return g.db