added chat, removed db.session.remove()