Use the result_source of the object, instead of Wing->db, so that tenant sites work correctly.