Mongo DB Connection check

also changed package naming conventions
delete duplicate files