[WIP] Adding a testing/database cookbook

This PR adds a new cookbook for testing with a database involved.

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | 2.0+
| Fixed tickets | #480

**This PR is not ready for merge yet**