inspecting result set from db