Updates to work with the latest version of the postgres module