-fixed a bug in the database function for searching tickets in which multiple departments could not be a parameter
-so if a user has multiple departments assigned, the session dept will be stringified and passed in, converted to an array of ids and the query will search based on multiple departments
-searching for a single department still works under this construction