adjusted migration to mysql