Fixed database functions for:
-getting a single ticket
-getting multiple tickets
-accepting and factoring in search/filtering parameters (uses async.js for concurrency prior to fetching tickets)
-getting the list of user-departments

The ticket page is now populated with information for the specific ticket. However the page needs to be heavily modified for presentation.