Correct database instance variable name in logging statement.

This fixes a missed rename from commit 46d2de3 which causes an exception to be raised when the process is terminated.