def nspam_nham_change(self, spam, ham):
        """Set the spam and ham counts for the database."""
        cursor = self.conn.cursor()
        cursor.execute("UPDATE bayes_vars SET spam_count=%s, ham_count=%s",
                       (spam, ham))