finish db access