Updating database file