Retrieve names from DB

The names are being retrieved according to the value in the input field,
so we made a LIKE in mySQL and put the retrieved data in the search-resp
view.