Externalize database configuration and add Travis support.