Expose compact function

- Expose compact function on CDTDatastore
I think we need an "if error" here?