messing around with postgresql json