fixed database
invoices view fixed and invoices add now finds material types in drop menu