In LogiQL: Relating Constraint Handling Rules to Datalog