Add ability to specify database in configuration.