Moving from CouchDB to MySQL, or vice versa