Add purchases table and hook up to invoices table.