adds cleanup procedure to database