Mysql class update

sentLastOffset and sentFirstPost need fix
Some changes