now supports checking if table exists for Postgresql