added db adapter