Cosmetic changes.
Update update_with_timestamp.

This now correctly builds a new document if the document is submitted as new.
Add wrap for db.use.

This takes care of some issues in db.use that don't deal properly with root-relative paths.