updated dbQuery and simChecker