got it working with mariadb
stuff kinda works, though a bug in pickling makes token-based registration strange