update databse file