Please help with plagiarism checker

@awcntdb - What determines a paper published or unpublished? Are student papers turned in to teachers considered unpublished materials? Wikipedia says essays submitted to Turnitin are stored in a database to prevent students from copying another student’s work. Does the database contain published materials then? This is something hard for me to understand if Turnitin does not associate the author with the submitted contents.