d3 loading db data