Changed Query

Changed query to ensure that the data collected can be multiple entries
Added missing 'echo's

Found missing echo declarations aded them in to fix the page