more sqlite plotting