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

@gen.coroutine
def add_all_services(self, service_dict):

    db = self.db
    futures = []
    for orm_service in db.query(Service):
        service = service_dict[orm_service.name]
        if service.server:
            futures.append(self.add_service(service))
    for f in futures:
        (yield f)
