Synchronization scripts for P2000 messages from a CouchDB to a MySQL db