Exporting Optimizely databases causing errors

Solutions to a couple of recurring issues when migrating databases to the cloud.