set db adapter