Shouldn't use the DB API directly at all, I don't think. Should always use ironic/objects/*.