Properly validate database access in XF exporter