store values to database

http://recursivechaos.com/blog/time-to-add-a-database/