fixed bug in DB API (when logging failure) and added Stringified record itself (using XMLUtil#spit) in the trace)