add initconfig function,db operation interfaces.