added support for result being deserialized for different types of insert calls