close properly the mongo connection
add the trashes (first effort)