database: cleanup.