updated db method