'Update the DB with found `chat_ids`
:type session: sqlalchemy.orm.Session
:type chat_ids: list[ChatIdEntry]'

def _update_db(self, session, chat_ids):

    self.log.info(u'saving    updated    chat_ids    to    db')
    chat_ids_d = dict(((x.id, x) for x in chat_ids))
    session.add_all(iter(chat_ids_d.values()))
    session.commit()
