Merge pull request #27 from picturae/17564

Try reconnecting if db gone away during import. refs #17564
Fix to use long array syntax as the cron server used still runs on php5.3
Merge pull request #39 from picturae/master

php 5.3 array syntax change and db reconnect issues