config database start logic