minor fixes to make import2db.py can work in multiple processes