extend max_length of anonymous_user_id (LMS-1571)
Handle integrity errors when creating/retrieving AnonymousUserId entries