sql queries for all tables and stored procedures