opens DB