def hasTable(cur, table):
    """checks to make sure this sql database has a specific table"""
    cur.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='table_name'")
    rows = cur.fetchall()
    if table in rows:
        return True
    else:
        return False