Full smart path to database file.

Plays nicer with mod_wsgi