fixing bug where schema existance is not properly checked for some postgres isntallations