Fixed case sensitive issue in sql request