Fixed avatarId to int in DB