def db_table_exists(db_cursor, tbl_name):
    """Check if table exists in given sqlite database"""
    db_cursor.execute(" SELECT count(name) FROM sqlite_master WHERE type='table' AND name=?", [tbl_name])
    if not db_cursor.fetchone()[0] == 1:
        return False
    else:
        return True