fixes to db and updateVouchers