update database and comments