TEIID-3044 TEIID-3080 removing invalid foreign keys and adding system
metadata for functions