Database security with WebGL

Good evening. My database is on the same server as the webgl application. Can someone access the database by hacking the webgl application? Is webgl application a risk for data on the server?

The WebGL application runs on a client, not a server. The database is as safe as the API’s or php scripts are that access it.