Fixed quote issue when using another db platform