Changes to posgresql