cleanup and external mongodb properties.