Improved code quality everywhere; made code more concise, resolved 'need' for `while(True)`s, improved formatting and generally moved to better practices. Next step will be switching from pymongo to DAL.