DB Migration fixes

Fixed up the DB Migration and CORS.