func (hs *sqlEventHistoryStore) DeleteOld(ctx context.Context, sinceWhen time.Time) error {
    q := "DELETE FROM events_history WHERE received_at < $1;"
    tx := hs.db.WithContext(ctx).Exec(q, sinceWhen)
    if tx.Error != nil {
        return tx.Error