optimizes query in getForeignKeyMetaData

The postgres system catalogs are much faster than the information_schema.
I tested this query on every table in tafkan.