Updated database to work with the new model structure.