Store spam filtering rules in db