sentences can now be read and written to database