I have a program that gets information from an SQLite database, every think works fine, but when I want to make a query to insert some data in the database, I do for example:

query.exec("INSERT INTO tab VALUES('5', 'Test');");
However the information doesn't get saved in the database and when I start the program again It just isn't there.

What do I need to do after I make the query so the information gets saved in the database?