switch conn validation from class to define

so that it matches the REAL postgres module and not just my
fork of it.