store db for each file