Updates to the chart of accounts files
Fix bugs in sql updates
Improvements to the mariadb database upgrade functions