#1239: Fix SQL queries for case sensitive db.
Merge pull request #353 from riniangreani/develop

#1239: Fix SQL queries for case sensitive db.