Default database to 0. Do not clobber python keywords.
Always include DB in path.
Remove redundant database checks.