Fix DB connection issue; update docs.
Merge pull request #107 from cryode/bug/setdatabase

Fix DB connection issue, add supporting documentation.