add php script to get DB data as json objects