make isPostgreSQL check URI instead of metadata