Storing simulations in SQL and plotting in HTML5