Fixed issue with the use of column names between the database and local references