Changes to support latest version of ormist

instance._id is replaced with instance.id