Added DB handling
Save / load the last edited time for document
Additional save/load code