update test db method