import sqlite3


def create_entry(conn, tweet):
    """ Store new tweet in db
    :param conn: DB connection
    :param story: Tweet data
    :return: Row id of new tweet
    """

    sql = ''' INSERT INTO tweets(created_at,full_text,tweet_id,source,retweets,favorites,geo,coordinates,place,reply_to,deeplink)
              VALUES(?,?,?,?,?,?,?,?,?,?,?) '''
    try:
        cur = conn.cursor()
        cur.execute(sql, tweet)
    except sqlite3.Error as e:
        raise NotImplementedError(f'Insertion failed with msg {e}')

    return cur.lastrowid