move rake tast to db migration