update psql function to also mark payments table vouchers expired