Look at this: blogs.com/rainman/archive/2011/06/22/2086069.html.
If you want to save to a special database, such as slq Server and mysql. Then you have to learn server-side languages, such as ruby, php, asp, jsp and so on. And this is the scope of learning. If you just save the database, you should find many examples.