[WIP] MySQL Schema

Fixes #322 

Work in progress, ongoing comments welcome.