Be consistant with the DB prefix.
Update install and upgrade files with custom fields per ticket types columns.
Fix ticket filters by removing wrongly placed `asort`.