Using the database cookbook