Created one table model per search category

This was done in stead of making continous changes to a single model
Merged 3 functions to avoid duplication of code
App now displays test data