fixed db config structure