Add `update` method for Db.