updated db class