cleanup and loading from DB