API: update SQL functional api #6300
TST: test new read_sql api