More fixes
Merge branch 'using-pg-sql' of github.com:RokkinCat/Arelle into using-pg-sql