Adding ensureIndex mongodb operation to ensure index is ready after import. Adding log messages.