Making some minor bugfixes to the testing/database cookbook. Added different code examples