playlist sql query gives all the needed data in json