removing unnecessary quotes from raw queries