from database to interactive graph