use dbconfig to configure DB