connect to BN database