move database operation about invoice number in InvoiceNumberRepository