Update isExternalClient check (#664)
Update isExternalClient check (#664)

* Update isExternalClient check

Problem using pg-promise - adopting the method used here: https://github.com/voxpelli/node-connect-pg-simple/blob/master/index.js#L95

* Update db.ts

* Do not use 'any'

Co-authored-by: Jan Dolezel <1cc329e034491eb796e57edd1b19e1f6909e9791@gmail.com>
theoephraim/node-pg-migrate,salsita/node-pg-migrate,salsita/node-pg-migrate,salsita/node-pg-migrate