before you can set up the email logging, you need to have a working connection to the database.
go to the database tab (Window -> Database) to create a connection to a mysql database.
see the "Creating your database connection in Dreamweaver" tutorial on the learning resources page for details:
tutorials.php