HTML5 for index pages, store user credentials in DB, small tweaks

I thought it would be nice to share the code I whipped up to store oAuth user credentials in a database.