Added tickets class, rudmentary DB scan code.