added test method for testing db