def insertQuestionRecord(question, db_conn, table):
    """
    Insert a new record into a database
    :param question: List of a question and an answer
    :param db_conn: Database connection
    :param table: Table to insert the record into
    :return: last insert id
    """
    values = "','".join(question)

    query = ("INSERT INTO %s "
             "(question, answer) "
             "VALUES('%s')") % (table, values)

    insert_id = db_conn.query(query)

    return insert_id