Add postgresql function for access to pickle tags array and aggregate it.