move mongo components to package