relations updated

added parameters to query