improvement to sync with DB

* finish importing on startup if instance did not finish last time around (in case of crash for example)
* batching in incremental mode
* reset heart beat during incremental import (avoids triggering deadlock detection code)