Do you actually want to save the data in a database? What sort of database do you want to use (e.g. MySQL, MSSQL, SQLite, MS Access)? The database connectivity toolkit allows you to connect to many different types of databases, insert and query data. There are examples in the LabVIEW example finder (go to Help -> Find Examples and type 'database' in the search tab).
Of course, if you are new to LabVIEW, there are many free tutorials/examples/courses to help you get started.
LabVIEW Champion, CLA, CLED, CTD
(blog)