Refactored mongo package for databse distribution