json feature added

added json to pull data from database
added logic to return response from db query

added logic to return response from db query
added encoding using ESAPI

ESAPI encoding added