Bug-111: code to migrate data from file to db
Merge pull request #1 from john-hu/bug-111-database-cache

Bug-111: code to migrate data from file to db, r=thomas