validate the db