test for db