Bug-111: code to migrate data from file to db