Created a method for running migrations