Fixing database.py, broken after the autopath fix.

The `database' object must be defined even if the module is
included (not run on the command line).