Adding models

I've rewritten pretty everything, added a database screen, settings and centralized the model that keeps track of all the data. It may be a bit rough around the edges, but c'est la vie