getDepartments
$result = getDepartments($filters)
Return all entries matching $filter from the departments table.
The method returns an array of objects, each object matching the filters specified.