implemented SQL to fetch a single profile image

the images have a phery (ajax) clickable link to load another image and
link