reference:spamrules_statement_dbquery