Added exceptions if table not found in PostgreSQL.