Hamsik writes history for Napoli