added deletion of other table in another thread