Why would you go into the database and empty two tables? What about all the other associated tables that make up a ticket?
You should Restore the two tables from back up.
If you cannot do that... well then you have would either want to dump the database and start over...
Or manually re-create the entries for those tickets.
You should delete tickets from the UI.