fix postgreSQL type check

https://github.com/equivalent/public_uid/issues/4