save and load doc from database
Save and load doc from database