mod. made query logging dependent on args flag.  modified user registration query to include 'autocreate' events also