Migrate mx to work with the new couchdb structure and views
Merge remote-tracking branch 'chiiph/bug/migrate_couch' into develop