Better organization of accountancy menus
Fix: sql error with pgsql