Corrected case sensitive table names in the referenced tables