You should post that question in the appropriate forum for whichever server side language you are using to access the database. Even if you are going to use JavaScript to send the request to the server without reloading the page you’ll need to get the version without JavaScript working first and most of the processing will be done by the server script even after you add the JavaScript.
There’s no need to include the entire huge jQuery library just to do one ajax call. Unless you already have jQuery attached to the page you can manage the same call in about a dozen lines of ordinary JavaScript.