added database connection config to instantiation