added function in rake task to also write seed file