Fixed case sensitivity problem in queries table names.