Removed unnecessary fields from Organization Registration view, added some useful plpgsql functions