Added query to delete expired sessions.