Fix cleaning database before import