MySQL multimaster

Removed db_id, some refactoring and at/after fix. Still lacking: fail-fast, proper testing