Database config generator.