update datebase file