add get_db function to db.py
refactoring interface with mongodb (almost there), EDUID-155
user refactor, EDUID-155
cleaning up and adding docstrings, EDUID-155
Merge remote-tracking branch 'origin/eperez-refactor'