Implemented initial db.update() for other types too
Implemented db.del(doc)