MTMS_DV db query implemented