fix bad dbObject.toString() - was returning a function not the string.

fixed bad tests that were not calling upsertFromUntrusted correctly.
fixed enum test because toString() now returns dbCode.
added findFetchBy* function