adding test database writes