fixed tickets sql for install