Import os in database_example

Closes #2176 

As it sits right now, if users just copy the database_example.py, fix up DATABASES and start using it, it breaks.