added check for aggregator definition.
added explicit driver definition to sqldf call.