Plots of an sqlite database using canvas