add schemas sync variants formatting initial implementation use existing db, wip move to separate folder fix table definitions wip wiring it up
* add schemas * handle json, improve type safety * formatting * sync variants * formatting