The boolean and HSTORE casting should be done in the same place, presumably? I don't think either of these two conversions belong in this spot, and chaining them in on the `onSuccess` callback might be the way to do it. I just don't know how to stub that in.