Change default location of database to projectdb rather than projects. This avoids
renaming the old projects file.
Add unit test for converting from old to new format.