Removing invalid tokens from the database