CREATE EVENT IF NOT EXISTS clean_expired_certificates ON SCHEDULE EVERY 1 HOUR DO DELETE FROM playerCertificates WHERE expiresAt < NOW();