use config.startIndex if database is empty, remove last saved index tracking