added performance test for database writes