Dwl schema migration

Wrote and fully-tested (to the best of my abilities, with help from @alycit) the schema and migrations.