updated database schema (added payed sum for invoices and migrated money columns to numeric)