Updates db file