updating db file