use DBO::quote rather than sqlite_escape_string