basic db driven config system