simpified to db configuration