fixed parsing for encryption keys and contents json, also added support to make sure we cannot start merging two different database files