Started work on transferring to NoSQL database. The analysis.py module needs work