Add extra scripts for flask-migrate to support refactoring
Some changes for workers, but stopped due to refactoring