Updated database return values from int to string in json format