MySQL to RethinkDB migration script