Added begginings of API
Tweaked db schema
WARNING: Broken commit. I did this blind on the train without a python env to test any of this code