The sample about how to initialize jquery datatable using ajax request.
Do not forget to load the datatable.js(https://datatables.net/download/download) script and if you want the style from database.css, you must to load the datatable.css too.
As you can see, this sample is only front-end you need of back-end to return the informations.