Add ID to hash in to_hash