removed dependency on dataset, added a couple of new sql methods