adapting prov-sql to new beans