encoding for pg db changed