added testDB method