Database configuration.