DB getFile php to json working