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()
Returns the client object in the database given a certain id. Raises
    an error if that does not exist.