corrected database migration