bug #4350 Deleting the DB if it is renamed by the same name

Signed-off-by: Marc Delisle <marc@infomarc.info>
Translated using Weblate (Bulgarian)

Currently translated at 71.6% (1970 of 2750)
Translated using Weblate (Korean)

Currently translated at 78.1% (2148 of 2750)
Translated using Weblate (Persian)

Currently translated at 34.6% (953 of 2750)
Translated using Weblate (Portuguese)

Currently translated at 61.2% (1683 of 2750)
Translated using Weblate (Traditional Chinese)

Currently translated at 99.9% (2749 of 2750)
Merge remote-tracking branch 'origin/QA_4_1' into QA_4_1
Merge commit '942ae12'
Merge commit 'e9c42ce'