Let Berkeley DB remove old database logs on its own, using the DB_LOG_AUTO_REMOVE...