Invoices Controller

Removed redundant calls to the DB from various methods