options parameter is owned/created by the OpenWorker class and should be deleted there and not in Database. Perhaps this works well but it makes the code unclear if a class is created on the heap in one place and cleaned up by another user of that memory.