Logging changes and additional methods in MappingQuery