added gorm
compartmentalize templates, add gorm