The search code

Should work. Will need to change a few things in the code to accommodate
the different database and also change the query to what we want.