made changes in the main db query to adjust to recent changes in SDM
dbase