Update database file