Unity and database

How can i connect and use a database with unity?

You need make a script to talk with the server and use the script variables in unity to trade data with your database, its high recommended that you DO NOT connect directly your database with unity scripts for security reasons.

Map all the fields in your database and use a server-side script to trade your data into your database.