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).
Merge pull request #95 from UFAL-DSG/fix_database_autopath

Fixing database.py, broken after the autopath fix.