refactored restore db to use linereader and created sample order dataset