added a function and pulling data by id

added a function that receives the id passed to it then pulls the
information from the database and displays it.