Better handling of db for threaded webserver
Merge pull request #5 from bradjc/master

Better DB for Threads