Fixed Database migration