cleanup of tables