fixed batch fetch + logging of error in insert