update Db class: add getters