This system works somewhat

There are some problems with object relationship and some of the
computation, but the spirit is there. I need to rewrite a lot of the
code. Adding the database to git repo.