base for db testing