Serach module

Finished the implementation of the search module using the new database
model.