update database and links