Function to print the database schema with tables and headers