Preparing database configuration.