Using Alembic api instead of sys.command

This is causing cherrpy logging issues for some odd reason.
I'll look into it later.