Added migration command, also added an abstract command class with some common methods