update database file