retrieve comment_class from the database