fixed array errors
Merge branch 'dev' of github.com:nZEDb/nZEDb into dev
fixed threaded scripts using 1 extra thread per script