Update ForestDB wrapper to be compatible with the new APIs