NOTE: ScriptDB is now deprecated. Please take a look at Database abstraction with google apps script for alternatives.
Here's a slideshare primer
Before I start, I have to mention a couple of compromises for this initial version.
Some more detail on this topic
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Things that have been deprecated > Google Apps ScriptDB >