changed ModelTemplate to ModelSchema and moved to separate file to be closer to the ActiveRecord pattern