First try to change to database cookbook

This is the first (non-working) version to use the database cookbook.

This change is the foundation to support other database drivers in the future.