made models more db-friendly and rails-vernacular