How to get data from sql to store the dynamic table

How to get data from sql to store the dynamic table.using javascript query

Check
http://docs.webix.com/datatable__loading_data.html#loadingfromdatabase