Merge pull request #1 from bnichols/master

Integrating the rest stuff from brent.
Reworked the overall framework and added database access instead of file.
Merge pull request #1 from jimgeisler/master

Database access and framework restructuring.