rmt:get-key-val-pairs was using wrong db.