Externalize database configuration and add Travis support.
Merge dblock's pull request