added bat for setting up db, got addPinn working