fixed issue where isPending was not always giving the expected value, fixes #172
added deleteAll method to generated mech db contract, fixes #105