Updated search function to be much more open, now works with searching for tasks.

Currently adding in ability to be able to left join a table in query.