Repository File saves to database