setting to new tab when created
added method for creating default Doc
refactored Db module