Fixed ability to set database in configuration.