Migrate to mysql database.