implemented persistent channel logging with mysql and reimplemented .seen using database