SQL - Simple script to get referenced table and their column names