Adding the db_spec.rb.

The file contains test for the db.pp
i will correct the indentation and update.