How to store field data in a file instead of the db?
Your best bet's going to be using the MongoDB module, I think ... Here is a quote about it (from the module's project page):

... is a collection of several modules which allow sites to store different types of Drupal data in MongoDB.
Views integration provided by EntityFieldQuery Views Backend.