mms19: changed model: created ModuleTemplate database methods and front
controller routes