Improve DB query for sorting, use id, query comments

Need to add blogId to id