Track downloads of a file with PHP/MySQL, display with d3.js