'Update the proxy table from the database.
Used when loading up a new proxy.'

@gen.coroutine
def add_all_users(self, user_dict):

    db = self.db
    futures = []
    for orm_user in db.query(User):
        user = user_dict[orm_user]
        for (name, spawner) in user.spawners.items():
            if spawner.ready:
                futures.append(self.add_user(user, name))
    for f in futures:
        (yield f)
