Ed alembic

Change database creation of ed.
We now use alembic instead of sql scripts to better handle migrations
it would be easier to declare the enum only one time