Fixed update query by setting index to property name.