use and release databases and collections during collection