Fixed database transition errors