Database config according to config format