Basic writing to PostgreSQL and daily removal of outdated events.