made the final changes to the models for the db