Database refactoring
Changing mongo to use env variable