Added invoice generation to DBManager, invoices are generated and added to the server