configure database