inital migrate create and populate function