move db adapter to dependencies