New function to optimize (vacuum) MMEX database