Added some documentation and updated the code to be able to setup DB programmatically.

Add some documentation and update the code so that you can call a function to initialize and load the database more easily.