porting of prov-sql to new beans