added test for data base