displayment functionality utilizing select sql