db update for amount_paid on invoices