Added lastmodified to the database table, for sending Last-Modified and deleting the oldest
Added code to delete threads from the database