Convert id to yaml

This allows a serialized column to be queried via sql. Thanks to Eckert for the
fix!