Saving to the database is not a jQuery problem. jQuery can send the data to your server. Your server code has to take it from there.
You have to do it in PHP (or some other server language). If you need more help with PHP, you need to find a PHP site.
And even a PHP site may not help you with everything. You need to pick a database and learn how to use it. MySQL, PostgreSQL, and SQLite are popular choices.