runs query need to get id