edits and fixes

I fixed the SQL stuff and made it a bit more readable.  Keep in mind you don't need to have column aliases for every column, only those that are the same in multiple tables.  I also saw a lot of return false statements in Jobs.php, not sure what those are all for?

I refactored Jobs so it doesn't inherit from Database.  I did the index, search, and view files, but most likely there other places that need to be edited now too, but they should all follow the same pattern.  You'd want to do something similar for User as well.