Making changes to database and model