Query change to work with case sensitive table name