switch from saving query response from json to text field in db