Filling the tickets properly. Attempting to gracefully recover in case there is not enough records in the DB