QL: Adding support for db.Constrainer and db.IDSetter interfaces.