I suggest that you can check the democontent epm example to see examples related with xsjs applications. There are lots of usage about xsjs service or db creations. In SAP HANA Web-based Development Workbench click editor tile after open the package sap as sap->hana->democontent->epm->service->soCreateMultiple.xsjs file. This file has some insert queries, they might be useful for you. Also the service package has another useful examples.