d3 and database code added