Update to the database for projects. Move code around in preparation
for creating a materials database.
Remove db package because of circular dependencies.
Rename projects -> projectdb.
Chagne to projectdb and fix failing tests/changed name.