updated unit tests to write, read, and delete from database