Closing the Connection

To close the database connection, simply call the close() method to the Connection:

db.close();