Storing instance id in db when analysis instance starts