Revert "Call vacuum when cleaning the database"

This reverts commit 5133e107e51e7e97f40644fc9dcad6a9ba42ac28.

Fix for #3827.