Fix SQL quotes