attempt to fix db adapter