Tweaking sqldirect to handle premade datasets.