Interface for PHP to D3 database