Add preliminary support for getting functions and triggers
Add scope for catalog tables to SQL statements