Reads the schema of a postgres db