Added hint assignment, delete hint, pg_header/footer, and updated queries to match db refactoring