For database connectivity simply create a category open the project in netbeans and go to sql.java and alter on the host the username and password of your server
Then within the zipped folder unzip and restore the database to your server
After which you could run the .jar within the dist folder. For queries simply remark right here.