invoice editor + many fixes
database update