passing db handle to post-fn now. Apparently eval means global vars only, :(