linked up grpahing to sqlite