Implemented initial db.update() for other types too