switching to posgres