log2db:fix typo & logreader: rename some variables