Fix migrations

Updated migrations to have one initial migration with structure for the v1
API, and a second migration with the v2 API structure.
Remove -h from mysql commands in DB recreate