added getter and setter for searchingFor class

forgot in first commit..sorry
added database connection
Merge pull request #2 from HENM1415/middleware

added getter and setter for searchingFor class