Make the db drop inside a transaction.