Fixed DB quoting (mainly for non-MySQL compat)