Sync between CouchDB and MySQL