Clear the filter and attachment tables in database when logging out