[#30612167 #29641525] Save ticket in local database

Dirty, dirty code. Too tired.