Move to mysql, remove uneeded code, add comment count