Join and Re-Join work on document database