get json from db