configure database adapter