Refactoring code - moving code to more logically sound places
Changed db setting in the config file to a Uri format. Added support for other databases as well as sqlite
Code clean-up
Merged changes added more intialization checks