add operation and doctype class, modify attachment and databasedao class