fixed case-sensitivity for linux

Fixed one issue that I had with the SQL.