Moved first_words method to story
Fixed template nonexisting function
Fixed cursor.commit() to connection.commit()

For the FINAL time