Fixed problem with unsynced cachedb instances overwriting each other