First commit.

Includes full class.db.php, as well as example usage and SQL file used
for example usage.