add hasSchema method for postgres