Convert to puzzles' file-system-based database.

This is to avoid tainting the code with the proprietary data, and to
make it easier to maintain.