Move data to file

index route working only