Database config generator