added sql_api public and private api CDB-926