fixed issue with hash function (hash is reserved word required by sqlite) #16
Added metric selector to d3 graph. Fixes #19