using dbio to test database writing