Implementing db configuration.