Added compact database option