Unified popup window for import, cleaning database and the new modes (refresh and delete).
Refresh mode completed. Some improvements added.