Adapt DB schema to new metadata system. Closes #11.
Now with 1% less stupidity!
Rename some FK constraints to fix conflicts.
FK and index renaming/changes.
Introduce API endpoints for project creation and retrieval.