Refactoring
Send invoice to database is working