def create_activity(conn, activity):
    """
    Create a new activity
    :param conn:
    :param activity:
    :return: project id
    """
    sql = ''' INSERT INTO Activities (activity, time_goal, time_done, user_id)
                VALUES(?,?,?,?) '''
    cur = conn.cursor()
    cur.execute(sql, activity)
    return cur.lastrowid