configure database.