'Remove all elements older than 30 days from the history'

def trim(self):

    self.db.action(u'DELETE    FROM    history    WHERE    date    <    ?', [(datetime.today() - timedelta(days=30)).strftime(History.date_format)])
