Fix update database to interval representation of comments