Change query due to case sensetive server