permitconsturctor updates, fixed tests; add sample.csv; dbtest.js changes to test a full permit