the function for adding laws is almost done but the query is no processing because the law is not define (again?)