Changed the full oracle metadata setting to use single sql statements to
fetch primary keys and foreign keys.