[Chris] refactor and update the osTicket database