There is a error in the mysql library indeed, thansk for pointing that out. Ine the datalogSave function, it has to be:
and the two quote calls should be also to $this. I fixed that in svn. It currently works but it was not intended this way and I had not noticed it cause it worked. I will check the issue regarding permissions.