Add R script to graph data from sqlite