Returns the client object in the database given a certain id. Raises
    an error if that does not exist.

def client(self, id):
    """Returns the client object in the database given a certain id. Raises
    an error if that does not exist."""

    return self.query(Client).filter(Client.id==id).one()