Not sure why you didn't use use my php library, since it would've probably saved you a bit time you could've used to add more features, but I guess it does what it's supposed to do, so *shrug*
For anyone interested in programming your own website with netsphere account integration you can take a look at my php library here:
Edit: I just realised they changed the database slightly in later versions of the emu, to accomodate for the authentification via auth tokens. Since the fields I insert/change didn't change though it should still work, assuming the database system uses sane default values for the missing values?