fix bug: conn.exist didn't return query result