Revert "Commented out datum_to_jsonb"

This reverts commit db6fbdc41bcd0d8c0341d3d1f77ac387c423bab8.
Revert "jsonb_agg"

This reverts commit efdc3c48090be1f81ae8c56f288302c2455d6004.