Expose compact function

- Expose compact function on CDTDatastore
Return `YES/NO` so the consumer can tell success or not.