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