Resetting tables settings on new query.