json-response: server.hs now pulls sql result into data structure...

and parses the result back to JSON.