MDL-45936 auth_db: use core functions when creating/updating a user