Sanity Check queries run on database

Requires view to be created from vw_hw_grants.sql file