database object cleanup