db output json data and get it