new class ValidDB and scripts (under development still)