Fixed query not returning result
Passing in model to the main page
Get more filtered data from the DB when a request is made
Added better routes architecture
Deleted old index.js