small changes for pg migration