def _and(*args):
    """Helper function to return its parameters and-ed
     together and bracketed, ready for a SQL statement.

    eg,

        _and("x=1", "y=2") => "(x=1 AND y=2)"
    """
    return " AND ".join(args)