Convert for postgres deployment