Integrated the DB code with Happstack and Aeson to serve a JSON response.
Updated the index html file to request the profile pic from the server with AJAX.