change db adapter override logic